package com.hpeng.basic.dao.impl;


import org.springframework.stereotype.Component;

import com.hpeng.basic.dao.AssetMeasurementUnitDao;
import com.hpeng.sys.model.AssetCard;
import com.hpeng.sys.model.AssetMeasurementUnit;
import com.hpeng.util.GenericDaoImpl;
import com.hpeng.util.Pagination;
@Component("assetMeasurementUnitDao")
public class AssetMeasurementUnitDaoImpl extends GenericDaoImpl<AssetMeasurementUnit, String>
		implements AssetMeasurementUnitDao {

	public Pagination<AssetMeasurementUnit> getPagination(int pageNumber,
			String[] hql, String order) {
		Pagination<AssetMeasurementUnit> pagination = null;
		StringBuffer sb = new StringBuffer();
		try {
			for (String str : hql) {
				sb.append(str);
			}
			pagination = this.getPagination(sb.toString() + order, null, pageNumber);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pagination;
	}

	
}
